package br.cos.ufrj.bd3.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

@Entity
public class Secao implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5429388258372387946L;
	private Long id;
	private String nome;
	private List<Noticia> listaNoticias;
	
	@Id @GeneratedValue
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	
	@ManyToMany
	public List<Noticia> getListaNoticias() {
		return listaNoticias;
	}
	public void setListaNoticias(List<Noticia> listaNoticias) {
		this.listaNoticias = listaNoticias;
	}
}
